﻿<%@ Page Title="Home" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Snapshot>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>This is the home page! It has important data! Graphs! Charts!</p>
    <p>
    <img src="/content/home/piechart.png" />
    <img src="/content/home/graph.gif" />
    </p>
    <p>
    <img src="/content/home/handdrawn.png" style="float: left" />
    <table>
        <caption>Imports</caption>
        <thead><tr><th>System</th><th>Date</th><th>Count</th></tr></thead>
        <tbody>
        <% foreach (var import in Model.RecentImports)
       { %>
            <tr>
            <td><%: import.SystemName %></td>
            <td><%: import.LastImportDate %></td>
            <td><%: import.LastImportCount %></td>
            
            </tr>
        <% } %>
        </tbody>
    </table>
    </p>
    <p>
    <table>
        <caption>Recent Updates</caption>
        <thead><tr><th>Type</th><th>Date</th><th>Comment</th></tr></thead>
        <tbody>
        <% foreach (var update in Model.RecentUpdates)
       { %>
            <tr>
            <td><%: update.ItemType %></td>
            <td><%: update.UpdateDate%></td>
            <td><%: update.UpdateComment%></td>
            </tr>
        <% } %>
        </tbody>
    </table>
    </p>

    
</asp:Content>

